/**
 * Created by Administrator on 2016/8/16.
 */
$(function(){

    var $window = $(window),
        Ww = $window.width(),
        Wh = $window.height();
    $window.load(function(){

        var index_banner = new Swiper('.index-ban',{                                                                     //首页banner
            autoplay : 3000,
            speed: 1000,
            //effect : 'fade',
            pagination : '.ban-page',
            paginationClickable :true,
            onInit: function(swiper){
                swiperAnimateCache(swiper);
                swiperAnimate(swiper);
            },
            onSlideChangeEnd: function(swiper){
                swiperAnimate(swiper);
            }
        });
        var product_all = new Swiper('.product-all',{                                                                 //产品中心
            //loop: true,
            autoplay : 5000,
            speed: 1000,
            slidesPerView : 4,
            prevButton:'.product-all .arrow-left',
            nextButton:'.product-all .arrow-right'
            //spaceBetween : 5
        });
        var news_imgs = new Swiper('.index-news-imgs',{                                                                 //产品中心
            //loop: true,
            autoplay : 5000,
            speed: 1000,
            pagination : '.news-page',
            paginationClickable :true,
        });






    });
});